<?php

namespace App\Service\Message\v1_2_7;

use App\Constants\ErrorCode;
use App\Model\CloseFriend;
use App\Model\User;
use App\Model\UserProfile;
use App\Service\User\UserBaseService;

/**
 * 通话评价页面信息
 */
class CallCommentInfoService extends UserBaseService
{
    protected function RoVerifyList()
    {
        return [
            'chat_user_id' => 'required|int'
        ];
    }

    public function handle()
    {
        $userId = $this->getUserId();
        $chatUserId = $this->request->input('chat_user_id', '');
        $chatProfile = UserProfile::getProfile($chatUserId);
        $ret = [
            'avatar' => $chatProfile->avatar,
            'nick_name' => $chatProfile->nick_name,
            'comment_level' => [
                ['level' => 1, 'text' => '满意'],
                ['level' => 2, 'text' => '一般'],
                ['level' => 3, 'text' => '差评'],
            ],
            'comment_tag' => [
                ['tag_id' => 1, 'text' => '服务好'],
                ['tag_id' => 2, 'text' => '善解人意'],
                ['tag_id' => 3, 'text' => '整体不错'],
                ['tag_id' => 4, 'text' => '活泼热情'],
                ['tag_id' => 5, 'text' => '会聊天'],
            ],
            'comment_desc' => '描述下对Ta的印象吧～'
        ];
        return $ret;
    }
}
